interface P1 {
    name: string,
    age: number,
   
}

interface P2 extends P1{
    married: boolean,
    makelove: () => boolean
}

type Test = {
    test22: boolean;
}

interface P3 extends Test{
    test: string;
}

class P implements P2, P3 {
    name= 'mystic'
    age= 18
    married= false
    test= 'aaa'
    test22 = false
    makelove() {
        return true
    }
}

let p = new P()
let res = p.makelove()
console.log(p.test22)